﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EOS.Framework.Web.Mvc
{
    public abstract class BaseWebPageFilter : Attribute, IWebPageFilter
    {
        private int _order;
        private FilterType _filterType;

        public BaseWebPageFilter(int order, FilterType filterType)
        {
            this._order = order;
            this._filterType = filterType;
        }

        #region IWebPageFilter Members

        public int Order
        {
            get { return _order; }
        }

        public FilterType FilterType
        {
            get { return _filterType; }
        }

        public abstract void Execute(PageContext pageContext);

        #endregion
    }
}
